package com.codejoys.monitor.event;

import org.springframework.context.ApplicationEvent;

public class LogStatusEvent extends ApplicationEvent {
    private boolean on;

    // source: 事件发布者，从哪个对象里面发布消息，就传入该对象
    // on: 是否开启状态日志 true：开启，false：关闭
    public LogStatusEvent(Object source, boolean on) {
        super(source);

        this.on = on;
    }

    public boolean isOn() {
        return this.on;
    }
}
